package org.example.api.inventory.service;


import org.example.api.inventory.request.InventoryRequest;
import org.example.base.response.MultiResponse;
import org.example.base.response.SingleResponse;

/**
 * 库存服务
 *
 * @author lly
 */
public interface InventoryFacadeService {



    /**
     * 库存扣减
     *
     * @param inventoryRequest
     * @return
     */
    public SingleResponse<Boolean> decrease(InventoryRequest inventoryRequest);

    /**
     * 查询库存扣减流水
     *
     * @param inventoryRequest
     * @return
     */
    public SingleResponse<String> getInventoryDecreaseLog(InventoryRequest inventoryRequest);


    /**
     * 库存增加
     *
     * @param inventoryRequest
     * @return
     */
    public SingleResponse<Boolean> increase(InventoryRequest inventoryRequest);



}
